DockConfig.create().key("BottomDock").orientation(DockOrientation.horizontal).panes(
TabConfig.create().key("BottomLeft")
.orientation(TabOrientation.bottom),
TabConfig.create().key("BottomRight")
.orientation(TabOrientation.left))));
node().setCenter(rootDock.node());
String topLeft = "TopLeft";
String topRight = "TopRight";
String bottomLeft = "BottomLeft";
String bottomRight = "BottomRight";
final DockModel rootDock = getModel(DockModel.class,
DockConfig.create()
.id("RootDock")
.orientation(DockOrientation.vertical)
.panes(
DockConfig.create()
.id("TopDock")
.orientation(DockOrientation.horizontal)
.panes(
TabConfig.create()
.id(topLeft)
.styleClass("Top Left")
.orientation(TabOrientation.top),
TabConfig.create()
.id(topRight)
.styleClass("Top Right")
.orientation(TabOrientation.right)),
DockConfig.create()
.id("BottomDock")
.orientation(DockOrientation.horizontal)
.panes(
TabConfig.create()
.id(bottomLeft)
.styleClass("Bottom Left")
.orientation(TabOrientation.bottom),
TabConfig.create()
.id(bottomRight)
.styleClass("Bottom Right")
.orientation(TabOrientation.left))));
node().setCenter(rootDock.node());
addTabWithCommand(topLeft, "Tab1");
addTabWithCommand(topLeft, "Tab2");
addTabWithCommand(topLeft, "Tab3");
addTabWithCommand(topLeft, "Tab4");
addTabWithCommand(topLeft, "Tab5");
addTabWithCommand(topLeft, "Tab6");
addTabWithCommand(topRight, "Tab7");
addTabWithCommand(topRight, "Tab8");
addTabWithCommand(topRight, "Tab9");
addTabWithCommand(bottomRight, "Tab10");
addTabWithCommand(bottomRight, "Tab11");
addTabWithCommand(bottomRight, "Tab12");
addTabWithCommand(bottomRight, "Tab13");
addTabWithCommand(bottomRight, "Tab14");